package com.scs.application.modules.dept.controller;

import com.scs.application.core.mvc.controller.FlowController;
import com.scs.application.modules.dept.entity.DeptReturn;
import com.scs.application.modules.dept.service.DeptReturnService;
import com.scs.application.modules.sys.model.RestResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 */
@RestController
@RequestMapping("/dept/return")
public class DeptReturnController extends FlowController<DeptReturnService, DeptReturn> {
    @GetMapping("/getDeptReturn")
    public RestResult getDeptReturn(@RequestParam("code") String code) {
        return RestResult.ok("ok",service.getDeptReturn(code));
    }
}
